package cn.com.freelibra.forum.dao;

import cn.com.freelibra.forum.po.Section;
import cn.com.freelibra.forum.po.SectionExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

import tk.mybatis.mapper.common.Mapper;

public interface SectionMapper extends Mapper<Section> {
    long countByEntity(SectionExample example);

    int deleteByEntity(SectionExample example);

    List<Section> selectByEntityWithBLOBs(SectionExample example);

    List<Section> selectByEntity(SectionExample example);

    int updateByEntitySelective(@Param("record") Section record, @Param("example") SectionExample example);

    int updateByvWithBLOBs(@Param("record") Section record, @Param("example") SectionExample example);

    int updateByEntity(@Param("record") Section record, @Param("example") SectionExample example);
    
    Page<Map<String, Object>> selectSectionJoinUserList(@Param("keyword")String keyword);
    
    Map<String, Object> selectSectionJoinUserByOne(@Param("sectionId")Long sectionId);
}